def f1_score(precision: float, recall: float):
    res = 2 * precision * recall/ (precision + recall)
    return res


if __name__ == '__main__':
    precision = 0.1
    recall = 0.9
    res = f1_score(precision, recall)
    print('f1_score:', res)

